
const TabbarReducer = (oldState={control: true}, action)=>{
    let newState = {...oldState};
    switch(action.type){
        case 'hide':
            newState.control = false;
            return newState;
        case 'show':
            newState.control = true;
            return newState;
        default:
            return oldState;
    }
}

export default TabbarReducer;